//
//  HWIconLabelButton.m
//  HappyWeekend
//
//  Created by lanou on 16/1/13.
//  Copyright © 2016年 com.mjykj.www. All rights reserved.
//

#import "HWIconLabelButton.h"
#define kButtonEdge 2

@implementation HWIconLabelButton


- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        
        self.likeImageV = [[UIImageView alloc] initWithFrame:CGRectMake(kButtonEdge, kButtonEdge, kIconX1, kIconX1)];
        _likeImageV.image = [UIImage imageNamed:@"iconfont-14"];
        _likeImageV.backgroundColor = [UIColor whiteColor];
        [self addSubview:_likeImageV];
        
        
        self.likeLabel = [[UILabel alloc] initWithFrame:CGRectMake(_likeImageV.right + kButtonEdge * 2, _likeImageV.top, frame.size.width - _likeImageV.width - kButtonEdge * 3, _likeImageV.height)];
        [self addSubview:_likeLabel];
        
    }
    return self;
}


@end
